home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / xcmd / pictoidu.sit / Pictoid Utilities / cards.xml < prev    next >
Encoding:
Text File  |  1991-04-27  |  13.6 KB  |  319 lines

  1. card_5541.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>5541</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_5763.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>5304</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  13.     <part>
  14.         <id>7</id>
  15.         <type>button</type>
  16.         <visible> <true /> </visible>
  17.         <reserved5> 0 </reserved5>
  18.         <reserved4> 0 </reserved4>
  19.         <reserved3> 0 </reserved3>
  20.         <reserved2> 0 </reserved2>
  21.         <reserved1> 0 </reserved1>
  22.         <enabled> <true /> </enabled>
  23.         <rect>
  24.             <left>232</left>
  25.             <top>180</top>
  26.             <right>268</right>
  27.             <bottom>210</bottom>
  28.         </rect>
  29.         <style>transparent</style>
  30.         <showName> <false /> </showName>
  31.         <highlight> <false /> </highlight>
  32.         <autoHighlight> <false /> </autoHighlight>
  33.         <sharedHighlight> <true /> </sharedHighlight>
  34.         <family>0</family>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>26425</icon>
  37.         <textAlign>center</textAlign>
  38.         <font>Chicago</font>
  39.         <textSize>12</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <name>Next</name>
  42.         <script>on mouseUp
  43. visual effect wipe left
  44. go next
  45. end mouseUp</script>
  46.     </part>
  47.     <part>
  48.         <id>9</id>
  49.         <type>button</type>
  50.         <visible> <true /> </visible>
  51.         <reserved5> 0 </reserved5>
  52.         <reserved4> 0 </reserved4>
  53.         <reserved3> 0 </reserved3>
  54.         <reserved2> 0 </reserved2>
  55.         <reserved1> 0 </reserved1>
  56.         <enabled> <true /> </enabled>
  57.         <rect>
  58.             <left>150</left>
  59.             <top>180</top>
  60.             <right>186</right>
  61.             <bottom>210</bottom>
  62.         </rect>
  63.         <style>transparent</style>
  64.         <showName> <false /> </showName>
  65.         <highlight> <false /> </highlight>
  66.         <autoHighlight> <false /> </autoHighlight>
  67.         <sharedHighlight> <true /> </sharedHighlight>
  68.         <family>0</family>
  69.         <titleWidth>0</titleWidth>
  70.         <icon>1011</icon>
  71.         <textAlign>center</textAlign>
  72.         <font>Chicago</font>
  73.         <textSize>12</textSize>
  74.         <textStyle>plain</textStyle>
  75.         <name>Home</name>
  76.         <script>on mouseUp
  77. go home
  78. end mouseUp</script>
  79.     </part>
  80.     <content>
  81.         <layer>background</layer>
  82.         <id>2</id>
  83.         <text>idleCursor XCMD and
  84. available & fontInfo XFCNs</text>
  85.     </content>
  86.     <content>
  87.         <layer>background</layer>
  88.         <id>3</id>
  89.         <text><span class="style7">tack & Code Resources ┬⌐ 1991, Nigel Perry
  90.  
  91. This stack and associated code resources are supplied asis, no gurantee express or implied is given that it will do anything or nothing to your Mac system, use only at your own risk. (Previous sentance probably only required in the USAΓǪ)
  92. Free for personal use and for use in stacks & applications which are free, provided this copyright notice and conditions of use are clearly displayed. May not be used for commercial or profit-making purposes or in ShareWare without permission. Code resources written in THINK C ┬⌐ Symantec.</span></text>
  93.     </content>
  94.     <content>
  95.         <layer>background</layer>
  96.         <id>6</id>
  97.         <text>Nigel Perry: HCI Centre, Queen Mary and Westfield College &  Dept of Computing, Imperial College. Email: np@doc.ic.ac.uk</text>
  98.     </content>
  99.     <name></name>
  100.     <script>on arrowKey which
  101. if which is "Right" then
  102. send mouseUp to btn "Next"
  103. else
  104. if which is not "Left" then
  105. pass arrowKey
  106. end if
  107. end if
  108. end arrowKey</script>
  109. </card>
  110.  
  111.  
  112. card_2867.xml
  113. <?xml version="1.0" encoding="utf-8" ?>
  114. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  115. <card>
  116.     <id>2867</id>
  117.     <filler1>0</filler1>
  118.     <cantDelete> <false /> </cantDelete>
  119.     <showPict> <true /> </showPict>
  120.     <dontSearch> <false /> </dontSearch>
  121.     <owner>2781</owner>
  122.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  123.     <content>
  124.         <layer>background</layer>
  125.         <id>3</id>
  126.         <text>Page 1 of 5</text>
  127.     </content>
  128.     <content>
  129.         <layer>background</layer>
  130.         <id>2</id>
  131.         <text><span class="style1">ormally HyperCard resets the cursor on </span><span class="style12">idle</span><span class="style1"> to the </span><span class="style12">browse</span><span class="style1"> cursor, thus preventing the HyperTalk programmer from making a permanent change to the cursor. The </span><span class="style12">idleCursor</span><span class="style1"> XCMD enables a programmer to set the browse cursor to something other than the pointing hand cursor, thus effecting a permanent cursor change.
  132.  
  133. Usage:┬á┬á┬á┬á</span><span class="style13">idleCursor(</span><span class="style14">cursor</span><span class="style13">)</span><span class="style1">
  134.  
  135. where </span><span class="style12">cursor</span><span class="style1"> may either be a cursor name of number. To reinstate the default hand cursor use must use </span><span class="style13">setCursor("Hand")</span><span class="style1">.
  136.  
  137. </span><span class="style12">(Note: under Finder the automatic subtitution of the hand cursor by another cursor will persist outside of HyperCard.)</span></text>
  138.     </content>
  139.     <content>
  140.         <layer>background</layer>
  141.         <id>9</id>
  142.         <text><span class="style1">he </span><span class="style11">idleCursor</span><span class="style1"> XCMD</span></text>
  143.     </content>
  144.     <name></name>
  145.     <script></script>
  146. </card>
  147.  
  148.  
  149. card_2150.xml
  150. <?xml version="1.0" encoding="utf-8" ?>
  151. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  152. <card>
  153.     <id>2150</id>
  154.     <filler1>0</filler1>
  155.     <cantDelete> <false /> </cantDelete>
  156.     <showPict> <true /> </showPict>
  157.     <dontSearch> <false /> </dontSearch>
  158.     <owner>2781</owner>
  159.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  160.     <content>
  161.         <layer>background</layer>
  162.         <id>3</id>
  163.         <text>Page 2 of 5</text>
  164.     </content>
  165.     <content>
  166.         <layer>background</layer>
  167.         <id>9</id>
  168.         <text><span class="style1">he </span><span class="style11">available</span><span class="style1"> XFCN</span></text>
  169.     </content>
  170.     <content>
  171.         <layer>background</layer>
  172.         <id>2</id>
  173.         <text><span class="style1">he </span><span class="style12">available</span><span class="style1"> XFCN returns either a list of all the </span><span class="style12">named</span><span class="style1"> resources of a given type, or a list of all the resource types, currently available.
  174.  
  175. Usage:┬á┬á┬á┬á</span><span class="style13">available(</span><span class="style14">type</span><span class="style13">)</span><span class="style1">
  176.  
  177. Where </span><span class="style12">type</span><span class="style1"> is one of: font(s), soun(ds), pict(ures), curs(ors), icon(s), type(s) or XXXX; which request the availabe fonts, sounds, pictures, cursors, icons, resource types, or resources of type XXXX respectively. The result of available is a return seperated list with one resource name per line.
  178.  
  179. Note: when specifying a resource type case is significant, i.e. </span><span class="style13">"xcmd"</span><span class="style1"> will </span><span class="style12">not</span><span class="style1"> return a list of available XCMDs, whereas </span><span class="style13">"XCMD"</span><span class="style1"> will.</span></text>
  180.     </content>
  181.     <name></name>
  182.     <script></script>
  183. </card>
  184.  
  185.  
  186. card_2516.xml
  187. <?xml version="1.0" encoding="utf-8" ?>
  188. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  189. <card>
  190.     <id>2516</id>
  191.     <filler1>0</filler1>
  192.     <cantDelete> <false /> </cantDelete>
  193.     <showPict> <true /> </showPict>
  194.     <dontSearch> <false /> </dontSearch>
  195.     <owner>2781</owner>
  196.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  197.     <content>
  198.         <layer>background</layer>
  199.         <id>3</id>
  200.         <text>Page 3 of 5</text>
  201.     </content>
  202.     <content>
  203.         <layer>background</layer>
  204.         <id>9</id>
  205.         <text><span class="style1">he </span><span class="style11">fontInfo</span><span class="style1"> XFCN</span></text>
  206.     </content>
  207.     <content>
  208.         <layer>background</layer>
  209.         <id>2</id>
  210.         <text><span class="style1">he </span><span class="style12">fontInfo</span><span class="style1"> XFCN returns details of a font.
  211.  
  212. Usage:┬á┬á┬á┬á</span><span class="style13">fontInfo(</span><span class="style14">font name</span><span class="style13">)</span><span class="style1">
  213.  
  214. where </span><span class="style12">font name</span><span class="style1"> is the name a font. The result is a list of lines, the first line contains two items; the font number and whether the font is </span><span class="style13">fixed</span><span class="style1"> width or </span><span class="style13">proportional</span><span class="style1"> ΓÇô this second item should be taken with a pinch of salt as many fixed width fonts are labeled as proportional! The second and subsequent lines contain details of the sizes & styles of the font bitmaps which are available. The first item on each line is the bitmap point size, the second and subsequent items are the bitmap style. If the point size is zero then the line gives details of a TrueTypeΓäó font.
  215. </span></text>
  216.     </content>
  217.     <name></name>
  218.     <script></script>
  219. </card>
  220.  
  221.  
  222. card_4178.xml
  223. <?xml version="1.0" encoding="utf-8" ?>
  224. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  225. <card>
  226.     <id>4178</id>
  227.     <filler1>0</filler1>
  228.     <cantDelete> <false /> </cantDelete>
  229.     <showPict> <true /> </showPict>
  230.     <dontSearch> <false /> </dontSearch>
  231.     <owner>2781</owner>
  232.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  233.     <part>
  234.         <id>3</id>
  235.         <type>field</type>
  236.         <visible> <true /> </visible>
  237.         <dontWrap> <false /> </dontWrap>
  238.         <dontSearch> <false /> </dontSearch>
  239.         <sharedText> <false /> </sharedText>
  240.         <fixedLineHeight> <false /> </fixedLineHeight>
  241.         <autoTab> <false /> </autoTab>
  242.         <lockText> <true /> </lockText>
  243.         <rect>
  244.             <left>9</left>
  245.             <top>113</top>
  246.             <right>191</right>
  247.             <bottom>216</bottom>
  248.         </rect>
  249.         <style>scrolling</style>
  250.         <autoSelect> <false /> </autoSelect>
  251.         <showLines> <false /> </showLines>
  252.         <wideMargins> <false /> </wideMargins>
  253.         <multipleLines> <false /> </multipleLines>
  254.         <reservedFamily> 0 </reservedFamily>
  255.         <titleWidth>0</titleWidth>
  256.         <icon>0</icon>
  257.         <textAlign>left</textAlign>
  258.         <font>Palatino</font>
  259.         <textSize>12</textSize>
  260.         <textStyle>plain</textStyle>
  261.         <textHeight>16</textHeight>
  262.         <name>Names</name>
  263.         <script>on mouseEnter
  264. idleCursor("qMark")
  265. end mouseEnter
  266.  
  267. on mouseLeave
  268. idleCursor("hand")
  269. end mouseLeave
  270.  
  271. on mouseUp
  272. -- could be more than on word, don't use clickText
  273. put the clickLine into lnum
  274. do "put" && lnum && "into fname"
  275. put fontInfo(fname) into cd fld "Info"
  276. set the scroll of cd fld "Info" to 0
  277. end mouseUp</script>
  278.     </part>
  279.     <part>
  280.         <id>4</id>
  281.         <type>field</type>
  282.         <visible> <true /> </visible>
  283.         <dontWrap> <false /> </dontWrap>
  284.         <dontSearch> <false /> </dontSearch>
  285.         <sharedText> <false /> </sharedText>
  286.         <fixedLineHeight> <false /> </fixedLineHeight>
  287.         <autoTab> <false /> </autoTab>
  288.         <lockText> <true /> </lockText>
  289.         <rect>
  290.             <left>224</left>
  291.             <top>113</top>
  292.             <right>406</right>
  293.             <bottom>216</bottom>
  294.         </rect>
  295.         <style>scrolling</style>
  296.         <autoSelect> <false /> </autoSelect>
  297.         <showLines> <false /> </showLines>
  298.         <wideMargins> <false /> </wideMargins>
  299.         <multipleLines> <false /> </multipleLines>
  300.         <reservedFamily> 0 </reservedFamily>
  301.         <titleWidth>0</titleWidth>
  302.         <icon>0</icon>
  303.         <textAlign>left</textAlign>
  304.         <font>Palatino</font>
  305.         <textSize>12</textSize>
  306.         <textStyle>plain</textStyle>
  307.         <textHeight>16</textHeight>
  308.         <name>Info</name>
  309.         <script></script>
  310.     </part>
  311.     <content>
  312.         <layer>background</layer>
  313.         <id>3</id>
  314.         <text>Page 4 of 5</text>
  315.     </content>
  316.     <content>
  317.         <layer>background</layer>
  318.         <id>9</id>
  319.         <text>Example</text>
  320.     </content>
  321.     <content>
  322.         <layer>background</layer>
  323.         <id>2</id>
  324.         <text><span class="style1">he field on the left contains the result of </span><span class="style13">available("fonts")</span><span class="style1">. If you click on a font name the result of </span><span class="style13">fontInfo(</span><span class="style14">font name</span><span class="style13">)</span><span class="style1"> will be put into the right field. A </span><span class="style13">mouseEnter</span><span class="style1">/</span><span class="style13">mouseLeave</span><span class="style1"> handler pair set the cursor to a ΓÇÿ?ΓÇÖ using </span><span class="style13">idleCursor</span><span class="style1"> while over the left field. For more details look at the scripts (card & field).</span></text>
  325.     </content>
  326.     <content>
  327.         <layer>card</layer>
  328.         <id>3</id>
  329.         <text>CalligraphyLaser
  330. Chicago
  331. Courier
  332. Geneva
  333. Helvetica
  334. HelveticaFractions
  335. Monaco
  336. Palatino
  337. Postscript Escape
  338. RegencyScript
  339. Symbol
  340. Times
  341. Warwick S
  342. Warwick T</text>
  343.     </content>
  344.     <name></name>
  345.     <script>on openCard
  346. set the cursor to watch
  347. lock screen
  348. put available("fonts") into cd fld "Names"
  349. sort cd fld "Names"
  350. put empty into cd fld "Info"
  351. set the scroll of cd fld "Names" to 0
  352. set the scroll of cd fld "Info" to 0
  353. unlock screen
  354. pass openCard
  355. end openCard
  356.  
  357. on closeCard
  358. idleCursor("hand") -- just in case
  359. end closeCard</script>
  360. </card>
  361.  
  362.  
  363. card_4353.xml
  364. <?xml version="1.0" encoding="utf-8" ?>
  365. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  366. <card>
  367.     <id>4353</id>
  368.     <filler1>0</filler1>
  369.     <cantDelete> <false /> </cantDelete>
  370.     <showPict> <true /> </showPict>
  371.     <dontSearch> <false /> </dontSearch>
  372.     <owner>2781</owner>
  373.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  374.     <content>
  375.         <layer>background</layer>
  376.         <id>3</id>
  377.         <text>Page 5 of 5</text>
  378.     </content>
  379.     <content>
  380.         <layer>background</layer>
  381.         <id>9</id>
  382.         <text>The End</text>
  383.     </content>
  384.     <content>
  385.         <layer>background</layer>
  386.         <id>2</id>
  387.         <text><span class="style1">he three externals in this stack are part of the next release of </span><span class="style12">Regions</span><span class="style1">, now renamed </span><span class="style12">Pictoids</span><span class="style1">, which is currently under development. They have been released now after a Usenet request for an external to set the idle cursor.
  388.  
  389. PostcardWare: If you use these externals please send me a postcard of your area to show your apprectiation and encourage me to produce more free software. My address is: Dr N Perry, 48 Ingleway, London N12 0QN, UK.
  390.  
  391. </span><span class="style17">Enjoy!</span></text>
  392.     </content>
  393.     <name></name>
  394.     <script></script>
  395. </card>
  396.  
  397.  
  398.